package com.spider.execute.timeExecute;

import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

import com.spider.base.GetExecute;


public class TimerExecute {
	
	public static <T> void executeTimer(Runnable run, int initialDelay,long delay){
		ScheduledExecutorService es = GetExecute.getScheduleThreadpool();
		es.scheduleWithFixedDelay(run, initialDelay,delay,TimeUnit.SECONDS);
	}
	
}
